Global Index
HTML5 JS API Index > Media Tutorials & Specs

VideoTrackList

Extends EventTarget.

Properties
unsigned long
length
The AudioTrackList.length and VideoTrackList.length attributes must return the number of tracks represented by their objects at the time of getting.
EventHandleronaddtrack
EventHandleronchange
EventHandleronremovetrack
long
selectedIndex
The VideoTrackList.selectedIndex attribute must return the index of the currently selected track, if any. If the VideoTrackList object does not currently represent any tracks, or if none of the tracks are selected, it must instead return −1.
Operations
VideoTrackgetter(unsigned long index)
VideoTrack?
getTrackById(DOMString id)
The AudioTrackList.getTrackById(id) and VideoTrackList.getTrackById(id) methods must return the first AudioTrack or VideoTrack object (respectively) in the AudioTrackList or VideoTrackList object (respectively) whose identifier is equal to the value of the id argument (in the natural order of the list, as defined above).
Referenced by
HTMLMediaElementvideoTracks